public class Test {
    public static void main(String[] args) {
        int a = 10;
        long b = 20l;
        //代码报错，因为进行了类型提升
        //int c = a + b;
        //代码正确
        long d = a + b;
        System.out.println(d);
    }
}
